package com.itheima.edu.info.manager.dao;

import com.itheima.edu.info.manager.domain.Student;

import java.util.ArrayList;




public interface BaseStudentDao {
    /*// 创建学生对象数组
    private static ArrayList<Student> stus = new ArrayList<>();

    static {
        Student stu1 = new Student("heima001","张三","23","1999-11-11");
        Student stu2 = new Student("heima002","李四","24","2000-11-11");

        stus.add(stu1);
        stus.add(stu2);
    }*/
    // 添加学生方法
    public abstract boolean addStudent(Student stu);
    // 查看学生方法
    public abstract Student[] findAllStudent() ;

    public abstract void deleteStudentById(String delId) ;

    public abstract int getIndex(String id);

    public abstract void updateStudent(String updateId, Student newStu) ;
}
